package subject.homework.zoosystrem.sons1;
import subject.homework.zoosystrem.father.*;

public class UserAnimal extends User
{
    public UserAnimal(String studentName){
        super.setUserName(studentName);
    }
    public UserAnimal(String studentName,int animalNum,String animalPark,String animalType){
        this.setAnimalNum(animalNum);
        this.setAnimalPark(animalPark);
        super.setUserName(studentName);
        super.setUserType(animalType);
    }

    //动物数量
    private Integer animalNum;
    //学生所属班级
    private String animalPark;

    public Integer getAnimalNum() {
        return animalNum;
    }

    public void setAnimalNum(int animalNum) {
        this.animalNum = animalNum;
    }



    public String getAnimalPark() {
        return animalPark;
    }

    public void setAnimalPark(String animalPark) {
        this.animalPark = animalPark;
    }







}
